<?php
@session_start();
include_once "lib/config.php";
include_once "lib/pdomanager.php";

include_once "lib/functions.php";

DB::$dbname=DBNAME;
DB::$hostname=HOST;
DB::$dbusername=USERNAME;
DB::$dbpassword=PASSWORD;
DB::$dbtype=TYPE;
DB::$portnumber=PORTNUMBER;

DB::connect();

$insertarray=array("staff_id"=>$_SESSION['u_id'],"action"=>"Logout","logtime"=>time());
                    
DB::insertData("stafflog",$insertarray);
                    
@session_destroy();
header("Location:index.php");
?>